<template>
	<view class="index-container">
		<u-search 
			shape="square" 
			:clearabled="true" 
			:showAction="true" 
			actionText="搜索" 
			:animation="true" 
			placeholder="日照香炉生紫烟" 
			v-model="keyword"
			height="40px"
			bgColor="#051a2e"
			searchIconSize="30px"
			actionStyle="backgroudcolor:#051a2e: "
		></u-search>
		 <u-swiper
				:list="list2"
				keyName="image"
				showTitle
				:autoplay="false"
				height="170px"
				circular
			></u-swiper>
	</view>
</template>

<script>
	import {
		UserService
	} from '../../request/api-package.js'
	export default {
		components: {
		},
		data() {
			return {
				title: 'Hello',
				keyword: '遥看瀑布挂前川',
				list2: [{
					image: 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					title: '昨夜星辰昨夜风，画楼西畔桂堂东',
				},{
					image: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					title: '身无彩凤双飞翼，心有灵犀一点通'
				},{
					image: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
					title: '谁念西风独自凉，萧萧黄叶闭疏窗，沉思往事立残阳'
				}],
			}
		},
		computed: {
			
		},
		onShow() {
			this.getList();
			//查询用户项目，待办，审批，工时数
		},
		methods: {
			refresh(){
				this.getList();
			},
			getList(){
				
			},
			open() {
				// console.log('open');
			},
			close() {
				
			},
		},
		onPullDownRefresh() {
			this.getList("refresh")
		},
	}
</script>

<style lang="scss" scoped>
	
</style>